package git.soulbgm.controller;

import git.soulbgm.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author SoulBGM
 * @version 1.0
 * @date 2020/8/14
 */
@RestController
public class DemoController {

    @Autowired
    private DemoService demoService;

    @RequestMapping("hello")
    public String hello() {
        demoService.doSomeThing("hello");
        return "hello";
    }

    @RequestMapping("hello2")
    public String hello2() {
        demoService.doSomeThing2("hello");
        return "hello2";
    }

}
